<?php

namespace Modules\Ui\component;


use Modules\Ui\Traits\Makenable;

class Element extends Component
{
    use Makenable;

    protected string $nodeName = 'div';

    /**
     * @param callable|string|array|null $callback
     */
    public function __construct($callback = null)
    {
        is_callable($callback)?call_user_func($callback,$this):$this->child($callback);
        return $this;
    }

}
